Optimal. Leaf size=384 \[ \frac {\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right ) \text {ArcTan}\left (1-\sqrt {2} \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}-\frac {\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right ) \text {ArcTan}\left (1+\sqrt {2} \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {a^2 \left (a^4-3 b^4\right ) \text {ArcTan}(\sinh (c+d x))}{\left (a^4+b^4\right )^2 d}+\frac {b^2 \left (3 a^4-b^4\right ) \log (\cosh (c+d x))}{\left (a^4+b^4\right )^2 d}-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}-\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (1-\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}+\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (1+\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.44, antiderivative size = 384, normalized size of antiderivative = 1.00, number of steps
used = 19, number of rules used = 13, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.565, Rules used = {3302, 6857,
1890, 1182, 1176, 631, 210, 1179, 642, 1262, 649, 209, 266} \begin {gather*} \frac {2 a b^2}{d \left (a^4+b^4\right ) \left (a+b \sqrt {\sinh (c+d x)}\right )}-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{d \left (a^4+b^4\right )^2}+\frac {b^2 \left (3 a^4-b^4\right ) \log (\cosh (c+d x))}{d \left (a^4+b^4\right )^2}+\frac {a^2 \left (a^4-3 b^4\right ) \text {ArcTan}(\sinh (c+d x))}{d \left (a^4+b^4\right )^2}+\frac {\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right ) \text {ArcTan}\left (1-\sqrt {2} \sqrt {\sinh (c+d x)}\right )}{d \left (a^4+b^4\right )^2}-\frac {\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right ) \text {ArcTan}\left (\sqrt {2} \sqrt {\sinh (c+d x)}+1\right )}{d \left (a^4+b^4\right )^2}-\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (\sinh (c+d x)-\sqrt {2} \sqrt {\sinh (c+d x)}+1\right )}{\sqrt {2} d \left (a^4+b^4\right )^2}+\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (\sinh (c+d x)+\sqrt {2} \sqrt {\sinh (c+d x)}+1\right )}{\sqrt {2} d \left (a^4+b^4\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 209
Rule 210
Rule 266
Rule 631
Rule 642
Rule 649
Rule 1176
Rule 1179
Rule 1182
Rule 1262
Rule 1890
Rule 3302
Rule 6857
Rubi steps
\begin {align*} \int \frac {\text {sech}(c+d x)}{\left (a+b \sqrt {\sinh (c+d x)}\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {1}{\left (a+b \sqrt {x}\right )^2 \left (1+x^2\right )} \, dx,x,\sinh (c+d x)\right )}{d}\\ &=\frac {2 \text {Subst}\left (\int \frac {x}{(a+b x)^2 \left (1+x^4\right )} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{d}\\ &=\frac {2 \text {Subst}\left (\int \left (-\frac {a b^3}{\left (a^4+b^4\right ) (a+b x)^2}+\frac {-3 a^4 b^3+b^7}{\left (a^4+b^4\right )^2 (a+b x)}+\frac {4 a^3 b^3+a^2 \left (a^4-3 b^4\right ) x-2 a b \left (a^4-b^4\right ) x^2+b^2 \left (3 a^4-b^4\right ) x^3}{\left (a^4+b^4\right )^2 \left (1+x^4\right )}\right ) \, dx,x,\sqrt {\sinh (c+d x)}\right )}{d}\\ &=-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )}+\frac {2 \text {Subst}\left (\int \frac {4 a^3 b^3+a^2 \left (a^4-3 b^4\right ) x-2 a b \left (a^4-b^4\right ) x^2+b^2 \left (3 a^4-b^4\right ) x^3}{1+x^4} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}\\ &=-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )}+\frac {2 \text {Subst}\left (\int \left (\frac {4 a^3 b^3-2 a b \left (a^4-b^4\right ) x^2}{1+x^4}+\frac {x \left (a^2 \left (a^4-3 b^4\right )+b^2 \left (3 a^4-b^4\right ) x^2\right )}{1+x^4}\right ) \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}\\ &=-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )}+\frac {2 \text {Subst}\left (\int \frac {4 a^3 b^3-2 a b \left (a^4-b^4\right ) x^2}{1+x^4} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {2 \text {Subst}\left (\int \frac {x \left (a^2 \left (a^4-3 b^4\right )+b^2 \left (3 a^4-b^4\right ) x^2\right )}{1+x^4} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}\\ &=-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )}+\frac {\text {Subst}\left (\int \frac {a^2 \left (a^4-3 b^4\right )+b^2 \left (3 a^4-b^4\right ) x}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{\left (a^4+b^4\right )^2 d}-\frac {\left (2 a b \left (a^4-2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {1+x^2}{1+x^4} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {\left (2 a b \left (a^4+2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {1-x^2}{1+x^4} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}\\ &=-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )}+\frac {\left (a^2 \left (a^4-3 b^4\right )\right ) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{\left (a^4+b^4\right )^2 d}+\frac {\left (b^2 \left (3 a^4-b^4\right )\right ) \text {Subst}\left (\int \frac {x}{1+x^2} \, dx,x,\sinh (c+d x)\right )}{\left (a^4+b^4\right )^2 d}-\frac {\left (a b \left (a^4-2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {1}{1-\sqrt {2} x+x^2} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}-\frac {\left (a b \left (a^4-2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {1}{1+\sqrt {2} x+x^2} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}-\frac {\left (a b \left (a^4+2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {\sqrt {2}+2 x}{-1-\sqrt {2} x-x^2} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}-\frac {\left (a b \left (a^4+2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {\sqrt {2}-2 x}{-1+\sqrt {2} x-x^2} \, dx,x,\sqrt {\sinh (c+d x)}\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}\\ &=\frac {a^2 \left (a^4-3 b^4\right ) \tan ^{-1}(\sinh (c+d x))}{\left (a^4+b^4\right )^2 d}+\frac {b^2 \left (3 a^4-b^4\right ) \log (\cosh (c+d x))}{\left (a^4+b^4\right )^2 d}-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}-\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (1-\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}+\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (1+\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )}-\frac {\left (\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\sqrt {2} \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {\left (\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right )\right ) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\sqrt {2} \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}\\ &=\frac {\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right ) \tan ^{-1}\left (1-\sqrt {2} \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}-\frac {\sqrt {2} a b \left (a^4-2 a^2 b^2-b^4\right ) \tan ^{-1}\left (1+\sqrt {2} \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}+\frac {a^2 \left (a^4-3 b^4\right ) \tan ^{-1}(\sinh (c+d x))}{\left (a^4+b^4\right )^2 d}+\frac {b^2 \left (3 a^4-b^4\right ) \log (\cosh (c+d x))}{\left (a^4+b^4\right )^2 d}-\frac {2 b^2 \left (3 a^4-b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )}{\left (a^4+b^4\right )^2 d}-\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (1-\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}+\frac {a b \left (a^4+2 a^2 b^2-b^4\right ) \log \left (1+\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )}{\sqrt {2} \left (a^4+b^4\right )^2 d}+\frac {2 a b^2}{\left (a^4+b^4\right ) d \left (a+b \sqrt {\sinh (c+d x)}\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 3 in
optimal.
time = 0.81, size = 280, normalized size = 0.73 \begin {gather*} \frac {-6 \sqrt {2} a^3 b^3 \left (\text {ArcTan}\left (1-\sqrt {2} \sqrt {\sinh (c+d x)}\right )-\text {ArcTan}\left (1+\sqrt {2} \sqrt {\sinh (c+d x)}\right )\right )+3 a^2 \left (a^4-3 b^4\right ) \text {ArcTan}(\sinh (c+d x))-3 b^2 \left (-3 a^4+b^4\right ) \log (\cosh (c+d x))+6 b^2 \left (-3 a^4+b^4\right ) \log \left (a+b \sqrt {\sinh (c+d x)}\right )-3 \sqrt {2} a^3 b^3 \left (\log \left (1-\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )-\log \left (1+\sqrt {2} \sqrt {\sinh (c+d x)}+\sinh (c+d x)\right )\right )+\frac {6 a b^2 \left (a^4+b^4\right )}{a+b \sqrt {\sinh (c+d x)}}-4 a b \left (a^4-b^4\right ) \, _2F_1\left (\frac {3}{4},1;\frac {7}{4};-\sinh ^2(c+d x)\right ) \sinh ^{\frac {3}{2}}(c+d x)}{3 \left (a^4+b^4\right )^2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 3.29, size = 376, normalized size = 0.98
method | result | size |
default | \(\frac {-\frac {2 b^{2} \left (\frac {2 b^{2} \left (a^{4}+b^{4}\right ) \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{a^{2} \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 b^{2} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-a^{2}}+\frac {\left (3 a^{4}-b^{4}\right ) \ln \left (a^{2} \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+2 b^{2} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-a^{2}\right )}{2}\right )}{\left (a^{4}+b^{4}\right )^{2}}+\frac {\left (3 a^{4} b^{2}-b^{6}\right ) \ln \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )+2 \left (a^{6}-3 a^{2} b^{4}\right ) \arctan \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a^{8}+2 b^{4} a^{4}+b^{8}}}{d}+\frac {\mathit {`\,int/indef0`\,}\left (\frac {2 a b \left (\sqrt {\sinh }\left (d x +c \right )\right ) \left (b^{4} \left (\sinh ^{2}\left (d x +c \right )\right )-2 a^{2} b^{2} \sinh \left (d x +c \right )+a^{4}\right )}{-b^{8} \left (\cosh ^{6}\left (d x +c \right )\right )+4 a^{2} b^{6} \left (\cosh ^{4}\left (d x +c \right )\right ) \sinh \left (d x +c \right )+\left (-6 b^{4} a^{4}+2 b^{8}\right ) \left (\cosh ^{4}\left (d x +c \right )\right )+\left (4 a^{6} b^{2}-4 a^{2} b^{6}\right ) \left (\cosh ^{2}\left (d x +c \right )\right ) \sinh \left (d x +c \right )+\left (-a^{8}+6 b^{4} a^{4}-b^{8}\right ) \left (\cosh ^{2}\left (d x +c \right )\right )}, \sinh \left (d x +c \right )\right )}{d}\) | \(376\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 30856 vs.
\(2 (357) = 714\).
time = 21.64, size = 30856, normalized size = 80.35 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {sech}{\left (c + d x \right )}}{\left (a + b \sqrt {\sinh {\left (c + d x \right )}}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{\mathrm {cosh}\left (c+d\,x\right )\,{\left (a+b\,\sqrt {\mathrm {sinh}\left (c+d\,x\right )}\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________